<!DOCTYPE html>
<html>
<head>
{%- block head %}
  <title>{% block title %}AdminLTE 2 | {% endblock title %}</title>
  {%- block metas %}
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <meta name="author" content="{% block author %} {% endblock author %}">
  <meta name="description" content="{% block description %} {% endblock description %}">
  <meta name ="keywords" content="{% block keywords %} {% endblock keywords %}">
  {%- endblock metas %}
  {%- block styles %}
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="{{ adminlte_find_resource('js/plugins/bootstrap/dist/css/bootstrap.css', cdn='local') }}">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="{{ adminlte_find_resource('js/plugins/font-awesome/css/font-awesome.css', cdn='local') }}">
  <!-- Ionicons -->
  <link rel="stylesheet" href="{{ adminlte_find_resource('js/plugins/Ionicons/css/ionicons.css', cdn='local') }}">
  <!-- Theme style -->
  <link rel="stylesheet" href="{{ adminlte_find_resource('css/AdminLTE.css', cdn='local') }}">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="{{ adminlte_find_resource('css/skins/_all-skins.css', cdn='local') }}">
  {%- endblock styles %}

  {% block ie8 %}
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.js"></script>
  <![endif]-->
  {%- endblock ie8 %}

  {%- block styles_tail %}  <!-- styles_tail -->  {%- endblock styles_tail %}
{%- endblock head %}
</head>
<body class="hold-transition {% block skin %}skin-blue{% endblock skin %} {% block bodytag %}sidebar-mini{% endblock bodytag %}">
  <noscript>
    {% with messages = get_flashed_messages(with_categories=true) %}
      {% if messages %}
      <div class="row">
        <div class="container">
            <div class="col-1-1">
            {% for category, message in messages %}
              <div class="alert-box {{ category }} banner">
               {{ message|safe }}
              </div>
            {% endfor %}
           </div>
        </div>
      </div>
      {% endif %}
    {% endwith %}
  </noscript>
{% block page_body %}
<div class="wrapper">

  <header class="main-header">
      {% block brand %}
    <!-- Logo -->
    <a href="index2.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>A</b>LT</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>Admin</b>LTE</span>
    </a>
       {% endblock brand %}
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      {% block navbar %}
      <div class="navbar-custom-menu">
          <!-- ul.nav.navbar-nav-->
      </div>
      {%- endblock navbar %}
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      {% block sidebar -%}
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p>Alexander Pierce</p>
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      <!-- search form -->
      <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
          <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->
      <!-- ul.sidebar-menu[data-widget="tree"] -->
      {%- endblock sidebar %}
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      {% block content_header -%}
      <h1>
        Dashboard
        <small>Control panel</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
      {%- endblock content_header %}
    </section>

    <!-- Main content -->
    <section class="content">
      {% block content -%}
      <!-- Main div.row -->
      <!-- /.row (main row) -->
      {%- endblock content %}
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      {% block version %}<b>Version</b> {{ __version__ }}{%- endblock version %}
    </div>
    {% block copyright %}<strong>Copyright &copy; 2016 <a href="#">Company</a>.</strong> All rights reserved.{%- endblock copyright %}
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
      {% block sidebar_control -%}
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-home-tab">      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">      </div>
      <!-- /.tab-pane -->
    </div>
      {%- endblock sidebar_control %}
  </aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
{%- endblock page_body %}

{% block page_body_tail %}{%- endblock page_body_tail %}

{% block scripts %}
<!-- jQuery 3 -->
<script src="{{ adminlte_find_resource('js/plugins/jquery/dist/jquery.js', cdn='local') }}"></script>
<!-- jQuery UI 1.11.4 -->
<script src="{{ adminlte_find_resource('js/plugins/jquery-ui/jquery-ui.js', cdn='local') }}"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="{{ adminlte_find_resource('js/plugins/bootstrap/dist/js/bootstrap.js', cdn='local') }}"></script>
<!-- AdminLTE App -->
<script src="{{ adminlte_find_resource('js/AdminLTE/adminlte.js', cdn='local') }}"></script>
{%- endblock scripts %}

{% block scripts_tail %} <!-- scripts_tail --> {%- endblock scripts_tail %}
</body>
</html>
